package com.helei.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;


/**
 * @author helei
 * @description PaymentController
 * @date 2020/8/21 11:40
 */
@RestController
public class PaymentController {

    @Value("${server.port}")
    private String port;

    @RequestMapping(value = "/payment/zk")
    public String paymentzk() {
        return "zookeeper: " + port + "\t" + UUID.randomUUID().toString();
    }
}
